﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using Zeus.Thunder.Core;

namespace SharpTrainer.Reflection
{
    class PropertyReflectionTest : ITestCase
    {
        public void Run()
        {
            Type t = typeof(SharpTrainer.MyEmployee);
            //获取所有属性 
            PropertyInfo[] properties = t.GetProperties();
            foreach (PropertyInfo property in properties)
            {
                Console.WriteLine(property.Name);
            } 
        }
    }
}
